package com.ch999.comparedata.config;

public class ContextHolder {

    private static final ThreadLocal<String> CONTEXT_HOLDER = new ThreadLocal<>();

    public static String getXid(){
        return CONTEXT_HOLDER.get();
    }

    public static void setContextHolder(String xid){
        CONTEXT_HOLDER.set(xid);
    }

    public static void remove(){
        CONTEXT_HOLDER.remove();
    }

}
